<?php


namespace App\Models;


use App\Traits\DateTimeModel;
use Illuminate\Database\Eloquent\Model;

class ReceivingProduct extends Model
{
    use DateTimeModel;
    protected $fillable = ['product_id', 'quantity', 'price', 'lot'];

    /**
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     * @author luffyzhao@vip.126.com
     */
    public function product(){
        return $this->belongsTo(Product::class);
    }
}